package com.gf.common.util;

import org.springframework.mail.SimpleMailMessage;

public class Test {

	public static void main(String[] args) throws InterruptedException {
		MailQueueHelper helper = MailQueueHelper.getHelper();
		for(int i=0;i<10;i++){
			SimpleMailMessage smm = new SimpleMailMessage();
			helper.sendSMM(smm);
		}
		
		Thread.currentThread().sleep(5000);
		
		SimpleMailMessage smm = new SimpleMailMessage();
		helper.sendSMM(smm);
		
		helper.close();
	}
}
